<?php
include_once 'Classes/InitialValue.class.php';
include_once 'Classes/Register.class.php';
$toppic = $_GET['page'];
InitialValue::initial($toppic);
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
    <head>
        <!--
        Created by Artisteer v3.0.0.32906
        Base template (without user's data) checked by http://validator.w3.org : "This page is valid XHTML 1.0 Transitional"
        -->
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Artisteer </title>

        <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
        <!--[if IE 6]><link rel="stylesheet" href="style.ie6.css" type="text/css" media="screen" /><![endif]-->
        <!--[if IE 7]><link rel="stylesheet" href="style.ie7.css" type="text/css" media="screen" /><![endif]-->

        <script type="text/javascript" src="jquery.js"></script>
        <script type="text/javascript" src="script.js"></script>
    </head>
    <body>
        <div id="art-page-background-middle-texture">
            <div id="art-page-background-glare">
                <div id="art-page-background-glare-image">
                    <div id="art-main">
                        <div class="art-sheet">
                            <div class="art-sheet-tl"></div>
                            <div class="art-sheet-tr"></div>
                            <div class="art-sheet-bl"></div>
                            <div class="art-sheet-br"></div>
                            <div class="art-sheet-tc"></div>
                            <div class="art-sheet-bc"></div>
                            <div class="art-sheet-cl"></div>
                            <div class="art-sheet-cr"></div>
                            <div class="art-sheet-cc"></div>
                            <div class="art-sheet-body">
                                <div class="art-header">
                                    <div class="art-header-center">
                                        <div class="art-header-png"></div>
                                    </div>
                                    <div class="art-logo">
                                        <h1 id="name-text" class="art-logo-name"><a href="#">Open Girls</a></h1>
                                        <h2 id="slogan-text" class="art-logo-text">Find the best girls</h2>
                                        <br/> <br/> <br/><br/>
                                        <?php
                                        if (Register::isRegis()) {
                                            print $_SESSION['username']." ";
                                            print '<a href="?page=logout">logout</a>';
                                        }
                                        ?>
                                    </div>
                                </div>
                                <div class="art-nav">
                                    <div class="l"></div>
                                    <div class="r"></div>
                                    <ul class="art-menu">
                                        <li>
                                            <a href="?page=home" class="active"><span class="l"></span><span class="r"></span><span class="t">Home</span></a>
                                        </li>
                                        <li>
                                            <a href="?page=search"><span class="l"></span><span class="r"></span><span class="t">ค้นหาผู้หญิงที่ใช่</span></a>
                                            <ul>
                                                <li><a href="#">Menu Subitem 1</a>
                                                    <ul>
                                                        <li><a href="#">Menu Subitem 1.1</a></li>
                                                        <li><a href="#">Menu Subitem 1.2</a></li>
                                                        <li><a href="#">Menu Subitem 1.3</a></li>
                                                    </ul>
                                                </li>
                                                <li><a href="#">Menu Subitem 2</a></li>
                                                <li><a href="#">Menu Subitem 3</a></li>
                                            </ul>
                                        </li>		
                                        <li>
                                            <a href="?page=about"><span class="l"></span><span class="r"></span><span class="t">About</span></a>
                                        </li>
                                    </ul>
                                </div>
                                <div class="art-content-layout">
                                    <div class="art-content-layout-row">
                                        <div class="art-layout-cell art-content">
                                            <div class="art-post">
                                                <div class="art-post-tl"></div>
                                                <div class="art-post-tr"></div>
                                                <div class="art-post-bl"></div>
                                                <div class="art-post-br"></div>
                                                <div class="art-post-tc"></div>
                                                <div class="art-post-bc"></div>
                                                <div class="art-post-cl"></div>
                                                <div class="art-post-cr"></div>
                                                <div class="art-post-cc"></div>
                                                <div class="art-post-body">
                                                    <div class="art-post-inner art-article">
                                                        <h2 class="art-postheader"><?php print $_SESSION['toppicname']; ?></h2>






                                                        <?php
                                                        $page = $_GET['page'] . ".php";

                                                        include_once $page;
                                                        ?>










                                                        <div class="cleared"></div>
                                                    </div>

                                                    <div class="cleared"></div>
                                                </div>
                                            </div>

                                            <div class="cleared"></div>
                                        </div>
                                    </div>
                                </div>
                                <div class="cleared"></div>
                                <div class="art-footer">
                                    <div class="art-footer-t"></div>
                                    <div class="art-footer-l"></div>
                                    <div class="art-footer-b"></div>
                                    <div class="art-footer-r"></div>
                                    <div class="art-footer-body">
                                        <a href="#" class="art-rss-tag-icon" title="RSS"></a>
                                        <div class="art-footer-text">
                                            <p><a href="#">Link1</a> | <a href="#">Link2</a> | <a href="#">Link3</a></p><p>Copyright &copy; 2012. All Rights Reserved.</p>
                                        </div>
                                        <div class="cleared"></div>
                                    </div>
                                </div>
                                <div class="cleared"></div>
                            </div>
                        </div>
                        <div class="cleared"></div>
                        <p class="art-page-footer"><a href="http://www.artisteer.com/">Web Template</a> created with Artisteer.</p>
                    </div>
                </div>
            </div>
        </div>

    </body>
</html>
